package com.itic.appbase.framework.type;

public enum UsersStoreGoodsResourceType {
	yh("yh","优惠家"),jd("jd","京东"),tm("tm","天猫"),tb("tb","淘宝"),esyp("esyp","二手优品");
	private String type;
	private String name;
	UsersStoreGoodsResourceType(String type,String name){
		this.type = type;
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static UsersStoreGoodsResourceType getUsersStoreGoodsResourceType(String type){
		UsersStoreGoodsResourceType usersStoreGoodsResourceType = null;
		switch(type){
		case"yh":
			usersStoreGoodsResourceType = UsersStoreGoodsResourceType.yh;
			break;
		case"jd":
			usersStoreGoodsResourceType = UsersStoreGoodsResourceType.jd;
			break;
		case"tm":
			usersStoreGoodsResourceType = UsersStoreGoodsResourceType.tm;
			break;
		case"tb":
			usersStoreGoodsResourceType = UsersStoreGoodsResourceType.tb;
			break;
		case"esyp":
			usersStoreGoodsResourceType = UsersStoreGoodsResourceType.esyp;
			break;
			default:break;
		}
		return usersStoreGoodsResourceType;
	}
}
